<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "auth_order_source".
 *
 * @property int $id
 * @property int $auth_shop_id
 * @property string|null $auth_app_order_id
 * @property string $content 接口原始数据
 * @property string $ctime
 */
class AuthOrderSource extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'auth_order_source';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['auth_shop_id', 'content'], 'required'],
            [['auth_shop_id'], 'integer'],
            [['content'], 'string'],
            [['ctime'], 'safe'],
            [['auth_app_order_id'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'auth_shop_id' => 'Auth Shop ID',
            'auth_app_order_id' => 'Auth App Order ID',
            'content' => 'Content',
            'ctime' => 'Ctime',
        ];
    }
}
